package test07.demo2;

public class Main {
    public static void main(String[] args) {
        User user=new User();
        Thief thief=new Thief();

        Woodendoor woodendoor=new Woodendoor();
        Securitydoor securitydoor=new Securitydoor();
        Lrongate lrongate=new Lrongate();

        Cars cars=new Cars();

        System.out.println("");
        user.useDoor(woodendoor);
        user.useDoor(securitydoor);
        user.useDoor(lrongate);

        System.out.println("");
        thief.steal(woodendoor);
        thief.steal(securitydoor);
        thief.steal(lrongate);

        System.out.println("");
        cars.guard();
    }
}
